<!DOCTYPE html>
<html>
<head>
	<link rel="stylesheet" href="/css/common.css"/>
	<link rel="stylesheet" href="/css/font.css"/>
</head>
<body>
<div class="modal" id="sysUserDlg">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="text-font">添加货物信息</h4>
			</div>
			<div class="div-margin-top" id="table_add_goods">
				<form action="" method="post" class="dark-matter">
					<h1>Add Goods
						<span>Please fill all the texts in the fields.</span>
					</h1>
					<label>
						<span>货物名称 :</span>
						<input id="goodsName" type="text" name="goodsName" v-model="goods.goodsName"placeholder="请输入货物名称" />
					</label>
					<label>
						<span>始发港口id :</span>
						<input id="goodsStartPortId" type="text" name="goodsStartPortId" v-model="goods.goodsStartPortId" placeholder="请输入始发港口id" />
					</label>
					<label>
						<span>目的地港口id :</span>
						<input id="goodsEndPortId" type="text" name="goodsEndPortId" v-model="goods.goodsEndPortId" placeholder="请输入目的地港口id" />
					</label>
					<label>
						<span>审核状态 :</span>
						<!--<input id="goodsState" type="text" name="goodsState" placeholder="请输入审核状态" />-->
						<select id="goodsState" name="goodsState" v-model="goods.goodsState">
							<option  value="0">未审核</option>
							<option  value="1">审核中</option>
							<option  value="2">审核通过</option>
							<option  value="3">未通过审核</option>
						</select>
					</label>
					<label>
						<span>价格 :</span>
						<input id="goodsPrice" type="text" name="goodsPrice" v-model="goods.goodsPrice" placeholder="请输入货物的价格" />
					</label>
					<label>
						<span>起运日期 :</span>
						<input id="goodsTransport" type="text" name="goodsTransport" v-model="goods.goodsTransport" placeholder="请输入起运日期" />
					</label>
					<!--<label>
						<span>货主id :</span>
						<input id="userId" type="text" name="userId" v-model="goods.userId" placeholder="请输入货主id" />
					</label>-->
					<label>　　
						<span>货主名字 :</span>
						<select  v-model="select2.userId"  @change='getValue'>
						　　<option>--请选择--</option>
						　　<option v-for="item in optList" v-bind:value="item.userId">{{ item.userName }}</option>
						　　</select><br>
					</label>
					<label>
						<span>驳回原因 :</span>
						<input id="reason" type="text" name="reason" v-model="goods.reason" placeholder="请输入驳回原因" />
					</label>
					<label>
						<span>&nbsp;</span>
						<input type="button" class="button" @click="add" value="Send" />
					</label>
				</form>
			</div>
		</div>
	</div>
</div>
</body>
<script src="../../public/libs/jquery.min.js"></script>
<script src="../../public/plugins/layer/layer.js"></script>
<script src="../../public/libs/bootstrap.min.js"></script>
<script src="../../public/libs/vue.min.js"></script>
<script src="../../public/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="../../public/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="../../public/plugins/ztree/jquery.ztree.all.min.js"></script>
<script src="../../public/js/common.js"></script>
<script src="../../public/js/sys/goods.js"></script>